import request from '@/utils/request'

//新增接口
export const addWcBanner = (data = {}, params = {}) => {
  return request({
    url: 'wcBanner',
    method: 'POST',
    data,
    params
  })
}
//修改接口
export const updataWcBanner = (data = {}, params = {}) => {
  return request({
    url: 'wcBanner',
    method: 'PUT',
    data,
    params
  })
}
//导出接口
export const exportWcBanner = (data = {}, params = {}) => {
  return request({
    url: 'wcBanner/export',
    method: 'POST',
    responseType: "blob",
    data,
    params
  })
}
//查询列表接口
export const listWcBanner = (data = {}, params = {}) => {
  return request({
    url: 'wcBanner/list',
    method: 'GET',
    data,
    params
  })
}
//删除接口
export function deleteWcBanner(ids) {
  return request({
    url: `wcBanner/${ids}`,
    method: 'DELETE'
  })
}
//单查接口
export function findWcBanner(id) {
  return request({
    url: `wcBanner/${id}`,
    method: 'GET'
  })
}
